import Vue from 'vue'
import App from './App.vue'

//引入Element-UI
import './plugins/element.js'

import router from './router'
import store from './store/store'




import mixin from './mixin/mixin.js'
//公共scss
import './scss/common.scss'

//设置为 false 以阻止 vue 在启动时生成生产提示。
Vue.config.productionTip = false

//修改四舍五入的方法
Number.prototype.toFixed = function(s){
    return (Math.round(this * Math.pow( 10, s ) )/ Math.pow( 10, s )).toString();
}

import InputLabel from '@/components/InputLabel/InputLabel.vue'
import Pagination from '@/components/Pagination/Pagination.vue'
import Select from '@/components/Select/Select.vue'
import SearchBtn from '@/components/SearchBtn/SearchBtn.vue'
import Input from '@/components/Input/Input.vue'
import Table from '@/components/Table/Table.vue'
import Button from '@/components/Button/Button.vue'
import ContentLayout from '@/components/ContentLayout/ContentLayout.vue'
import SearchInputLayout from '@/components/SearchInputLayout/SearchInputLayout.vue'
import Date from '@/components/Date/Date.vue'
import Dialog from '@/components/Dialog/Dialog.vue'
import PageLayout from '@/components/PageLayout/PageLayout.vue'
import Time from '@/components/Time/Time.vue'
import IconBtn from '@/components/IconBtn/IconBtn.vue'
Vue.component(InputLabel.name, InputLabel)
Vue.component(Pagination.name, Pagination)
Vue.component(Select.name, Select)
Vue.component(SearchBtn.name, SearchBtn)
Vue.component(Input.name, Input)
Vue.component(Table.name, Table)
Vue.component(Button.name, Button)
Vue.component(ContentLayout.name, ContentLayout)
Vue.component(SearchInputLayout.name, SearchInputLayout)
Vue.component(Date.name, Date)
Vue.component(PageLayout.name,PageLayout)
Vue.component(Dialog.name ,Dialog) 
Vue.component(Time.name ,Time) 
Vue.component(IconBtn.name ,IconBtn) 

new Vue({
	mixins:[mixin],
  router,
	store,
  render: h => h(App),
}).$mount('#app')
